ssl - apache - solaris
am 05.11.2009 17:23:11 von Rajwinder-office Singh
--00163691fa13b989870477a224fa
Content-Type: text/plain; charset=ISO-8859-1
I am trying to compile apache on solaris 10 and getting the below error :
Command used to configure :
../configure --prefix=/appl/apache1 --enable-mods-shared=most --enable-ssl
--with-ssl=/usr/local/ssl/
/usr/local/ssl/bin/openssl version
OpenSSL 0.9.8k 25 Mar 2009
Error on trying to start apache with ssl :
"Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1: httpd:
fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol
SSL_CTX_sess_set_new_cb: referenced symbol not found"
I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache 2.0.59
Any pointers what i am missing ?
Thanks
Singh
--00163691fa13b989870477a224fa
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
I am trying to compile apache on solaris 10 and getting the below error :
r>
Command used to configure :
./configure --prefix=3D/appl/apach=
e1 --enable-mods-shared=3Dmost --enable-ssl --with-ssl=3D/usr/local/ssl/
>
/usr/local/ssl/bin/openssl version
OpenSSL 0.9.8k 25 Mar 2009
Err=
or on trying to start apache with ssl :
"Cannot load /appl/apac=
he1/modules/mod_ssl.so into server: ld.so.1: httpd: fatal: relocation error=
: file /appl/apache1/modules/mod_ssl.so: symbol SSL_CTX_sess_set_new_cb: re=
ferenced symbol not found"
I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache 2.=
0.59
Any pointers what i am missing ?
Thanks
Singh
--00163691fa13b989870477a224fa--
Re: ssl - apache - solaris
am 05.11.2009 17:41:43 von Nick Kew
Rajwinder-office Singh wrote:
> Error on trying to start apache with ssl :
>
> "Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1:
> httpd: fatal: relocation error: file /appl/apache1/modules/mod_ssl.so:
> symbol SSL_CTX_sess_set_new_cb: referenced symbol not found"
Did you try loading libssl with LoadFile before loading mod_ssl?
On opensolaris, I use
LoadFile /lib/libssl.so
LoadModule ssl_module modules/mod_ssl.so
--
Nick Kew
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: ssl - apache - solaris
am 05.11.2009 17:48:21 von sheryl
> ../configure --prefix=/appl/apache1 --enable-mods-shared=most --enable-ssl
> --with-ssl=/usr/local/ssl/
[snip]
> "Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1: httpd:
> fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol
> SSL_CTX_sess_set_new_cb: referenced symbol not found"
I suspect that it doesn't know where to find the library. You can confirm
this by running "ldd httpd" on the http daemon. If that's the case, try
adding the ssl library directory to the LD_LIBRARY_PATH (probably
/usr/local/ssl/lib) in the envvars file in the apache bin directory.
It's also possible to set up the RPATH during the configure/compile step
to set the location of the library within the binary but not usually
necessary. Using envvars works too.
> I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache
> 2.0.59
>
> Any pointers what i am missing ?
>
> Thanks
> Singh
>
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: ssl - apache - solaris
am 05.11.2009 19:59:35 von Rajwinder-office Singh
--00163691fa130a94e50477a4548b
Content-Type: text/plain; charset=ISO-8859-1
Thanks for you replies guys :
Loadfile before module works fine ;-)
LoadFile /usr/local/ssl/lib/libssl.so
I checked with ldd :
root@myserver # ldd /appl/apache0/bin/httpd
libm.so.2 => /lib/libm.so.2
libaprutil-1.so.0 => /appl/apache0/lib/libaprutil-1.so.0
libexpat.so.1 => /usr/local/lib/libexpat.so.1
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libapr-1.so.0 => /appl/apache0/lib/libapr-1.so.0
libuuid.so.1 => /lib/libuuid.so.1
libsendfile.so.1 => /lib/libsendfile.so.1
librt.so.1 => /lib/librt.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libpthread.so.1 => /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 => /lib/libaio.so.1
libmd5.so.1 => /lib/libmd5.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V440/lib/libmd5_psr.so.1
root@myserver # ldd /appl/apache0/modules/mod_ssl.so
libssl.so.0.9.8 => /usr/local/lib/libssl.so.0.9.8
libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8
libuuid.so.1 => /lib/libuuid.so.1
libsendfile.so.1 => /lib/libsendfile.so.1
librt.so.1 => /lib/librt.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libpthread.so.1 => /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libdl.so.1 => /lib/libdl.so.1
libaio.so.1 => /lib/libaio.so.1
libmd5.so.1 => /lib/libmd5.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V440/lib/libmd5_psr.so.1
Looks like libssl.so is not listed as dependency.
I tried adding in envvars file but didnt worked :
LD_LIBRARY_PATH="/usr/local/ssl/lib:/appl/apache0/lib:$LD_LI BRARY_PATH"
On Thu, Nov 5, 2009 at 11:48 AM, Sheryl wrote:
>
> > ../configure --prefix=/appl/apache1 --enable-mods-shared=most
> --enable-ssl
> > --with-ssl=/usr/local/ssl/
> [snip]
> > "Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1:
> httpd:
> > fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol
> > SSL_CTX_sess_set_new_cb: referenced symbol not found"
>
> I suspect that it doesn't know where to find the library. You can confirm
> this by running "ldd httpd" on the http daemon. If that's the case, try
> adding the ssl library directory to the LD_LIBRARY_PATH (probably
> /usr/local/ssl/lib) in the envvars file in the apache bin directory.
>
> It's also possible to set up the RPATH during the configure/compile step
> to set the location of the library within the binary but not usually
> necessary. Using envvars works too.
>
> > I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache
> > 2.0.59
> >
> > Any pointers what i am missing ?
> >
> > Thanks
> > Singh
> >
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--00163691fa130a94e50477a4548b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks for you replies guys :
Loadfile before module works fine ;-)<=
br>
LoadFile /usr/local/ssl/lib/libssl.so
I checked with ldd :
>
root@myserver # ldd /appl/apache0/bin/httpd
=A0 l=
ibm.so.2 =3D> /lib/libm.so.2
=A0 libaprutil-1.so.0 =3D> /appl/apache0/l=
ib/libaprutil-1.so.0
=A0 libexpat.so.1 =3D> =
/usr/local/lib/libexpat.so.1
=A0 li=
biconv.so.2 =3D> /usr/local/lib/libiconv.so.2
> =A0 libapr-1.so.0 =3D> /appl/=
apache0/lib/libapr-1.so.0
=A0 libuuid.so.1 =3D>=A0 /lib/libuuid.so.1
=
=A0 libsendfile.so.1 =3D> =A0 /lib/libsendfile.so=
..1
=A0 librt.so.1 =3D> =A0 /lib/librt.so.1
=
=A0 libsocket.so.1 =3D> =A0 /lib/libs=
ocket.so.1
=A0 libnsl.so.1 =3D> /lib/libnsl.s=
o.1
=A0 libpthread.so.1 =3D> /lib/libpth=
read.so.1
=A0 libc.so.1 =3D> /lib/libc.=
so.1
=A0 libgcc_s.so.1 =3D> =
/usr/local/lib/libgcc_s.so.1
=A0 libaio.so.1 =3D>=
/lib/libaio.so.1
=A0 libmd5.so.1 =3D> /lib/libmd5.so.1
=
=A0 libmp.so.2 =3D> =A0 /lib/libmp.so.2
=
=A0 libscf.so.1 =3D> /lib/libscf.so.1
=
=A0 libdoor.so.1 =3D>=A0 /lib/libdoor.so.1
=A0 libu=
util.so.1 =3D> /lib/libuutil.so.1
=A0 /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
=A0=
/platform/SUNW,Sun-Fire-V440/lib/libmd5_psr.so.1
=
root@myserver # ldd /appl/apache0/modules/mod_ssl.so
=
=A0 libssl.so.0.9.8 =3D> /usr/local/lib/libssl.so.0.9.=
8
=A0 libcrypto.so.0.9.8 =3D> =A0 /usr/local/ssl/li=
b/libcrypto.so.0.9.8
=A0 libuuid.so.1 =3D>=A0 /lib/=
libuuid.so.1
=A0 libsendfile.so.1 =3D> =
=A0 /lib/libsendfile.so.1
=A0 librt.so.1 =3D> =
=A0 /lib/librt.so.1
=A0 libsocket.so.1 =3D> =A0 /lib/libs=
ocket.so.1
=A0 libnsl.so.1 =3D> /lib/libnsl.s=
o.1
=A0 libpthread.so.1 =3D> /lib=
/libpthread.so.1
=A0 libc.so.1 =3D> /li=
b/libc.so.1
=A0 libgcc_s.so.1 =3D> =A0=
=A0 /usr/local/lib/libgcc_s.so.1
=A0 libdl.so.1 =3D> =A0 /lib/libdl.so.1
=
=A0 libaio.so.1 =3D> /lib/libaio.so.1
=
=A0 libmd5.so.1 =3D> /lib/libmd5.so.1
=
=A0 libmp.so.2 =3D> =A0 /lib/libmp.so.2
=A0 li=
bscf.so.1 =3D> /lib/libscf.so.1
=A0 libdoor.so.1 =3D>=A0 /lib/libdoor.so.1
=
=A0 libuutil.so.1 =3D> /lib/libuutil=
..so.1
=A0 libm.so.2 =3D> /lib/libm.so.2=
=A0 /platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
> =A0 /platform/SUNW,Sun-Fire-V440/lib/libmd5_psr.so.1
Looks like libssl.so is not listed as dependency.
I tried adding=
in envvars file but didnt worked :
LD_LIBRARY_PATH=3D"/usr/loc=
al/ssl/lib:/appl/apache0/lib:$LD_LIBRARY_PATH"
ss=3D"gmail_quote">
On Thu, Nov 5, 2009 at 11:48 AM, Sheryl <
ilto:gubydala@his.com">gubydala@his.com> wrote:
e class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204);=
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> ../configure --prefix=3D/appl/apache1 --enable-mods-shared=3Dmost --en=
able-ssl
> --with-ssl=3D/usr/local/ssl/
[snip]
> "Cannot load /appl/apache1/modules/mod_ssl.so i=
nto server: ld.so.1: httpd:
> fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol=
> SSL_CTX_sess_set_new_cb: referenced symbol not found"
I suspect that it doesn't know where to find the library. =A0You =
can confirm
this by running "ldd httpd" on the http daemon. =A0If that's =
the case, try
adding the ssl library directory to the LD_LIBRARY_PATH (probably
/usr/local/ssl/lib) in the envvars file in the apache bin directory.
It's also possible to set up the RPATH during the configure/compile ste=
p
to set the location of the library within the binary but not usually
necessary. =A0Using envvars works too.
> I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache
r>
> 2.0.59
>
> Any pointers what i am missing ?
>
> Thanks
> Singh
>
-----------------------------------=
----------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:
lank">http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail:
g">users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest:
@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail:
org">users-help@httpd.apache.org
--00163691fa130a94e50477a4548b--
Re: ssl - apache - solaris
am 05.11.2009 22:46:48 von sheryl
> Thanks for you replies guys :
>
> Loadfile before module works fine ;-)
The only thing to watch out with on loadfile is that sometimes an upgrade
will "disappear" the addtion and you'll have to put it back. I never had
the problem on Solaris but I have seen that happen on RHEL.
Sheryl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org